#ifndef duration_H_INCLUDED
#define duration_H_INCLUDED
#include "enums.h"
namespace smil{
    class duration
    {
        public:
        duration(); // constructs indefinite
        duration(long int); // constructs numeric
        duration(synctype); // constructs nonnumeric
        virtual ~duration();
        synctype state;
        long int value; // value is in milliseconds!
        duration operator+ (duration);
        duration operator- (duration);
        duration operator* (float);
        duration operator= (int);
        duration operator= (synctype);
        duration& minimize(duration&);
        duration& maximize(duration&);
        friend duration& minimize(duration&, duration&);
        friend duration& maximize(duration&, duration&);
        bool operator== (duration);
        bool operator== (synctype);
        bool operator== (int);
    };
}

#endif // duration_H_INCLUDED
